package com.panyy.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:/spark.properties")
@Data
public class SparkProperties {
    @Value("${spark.sparkHome}")
    private String sparkHome;

    @Value("${spark.appResource}")
    private String appResource;

    @Value("${spark.mainClass}")
    private String mainClass;

    @Value("${spark.master}")
    private String master;

    @Value("${spark.deployMode}")
    private String deployMode;

    @Value("${spark.driver.memory}")
    private String driverMemory;

    @Value("${spark.executor.memory}")
    private String executorMemory;

    @Value("${spark.executor.cores}")
    private String executorCores;

    @Value("${spark.yarn.queue}")
    private String yarnQueue;

    @Value("${spark.javaHome}")
    private String javaHome;

    @Value("${spark.hadoopConfDir}")
    private String hadoopConfDir;
}
